<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>游戏卡 分组</title>

    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <script type="text/javascript" src="{$Think.const.RESOURCE}lib/layui/layui.js" charset="utf-8"></script>
    <script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="row">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated fadeIn">
                <div class="text-center">
                    <h1>批量生成游戏卡</h1>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <!--<h2>金币信息</h2>-->
                        <form action="{:U('Gamecard/create')}" method="post">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>卡片类型 *</label>
                                    <select class="form-control m-b" name="card_type">
                                        <option value="1">充值卡</option>
                                        <option value="0">新手卡</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>生成数量 *</label>
                                    <input  name="count" type="number" class="form-control required">
                                </div>
                                <div class="form-group">
                                    <label>金币数 (单张卡)*</label>
                                    <select class="form-control m-b" name="card_gold">
                                        <option value="10000">1万</option>
                                        <option value="100000">10万</option>
                                        <option value="1000000">100万</option>
                                        <option value="10000000">1000万</option>
                                        <option value="100000000">1亿</option>
                                        <option value="1000000000">10亿</option>
                                        <option value="10000000000">100亿</option>
                                        <option value="100000000000">1000亿</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>销售商(游戏ID) *</label>
                                    <input name="card_owner" type="number" class="form-control required">
                                </div>
                                <div class="form-group">
                                    <label>卡号规则(开始字符) *</label>
                                    <input  name="card_no_prefix" type="text" maxlength="7" class="form-control required">
                                    <span class="help-block m-b-none text-danger">不能为空，最多7个字符，不能有特殊字符</span>
                                </div>

                            </div>
                            <div class="col-md-3 text-center">
                                <button type="submit" class="btn btn-danger">生成卡片</button>
                            </div>
                            <div class="col-md-3 text-center">
                                <button type="reset" class="btn ">重置</button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
    </div>

</div>

<!-- 全局js -->

<script>
    $(document).keyup(function(event){
        if (event.keyCode == 27){
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭
            window.close();
        }
    });
</script>

</body>

</html>